package cn.ds.fly.modules.sys.service.impl;

import cn.ds.fly.modules.sys.entity.FlyUser;
import cn.ds.fly.modules.sys.mapper.UserMapper;
import cn.ds.fly.modules.sys.service.UserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

/**
 * Created by lds on 2017/12/14.
 * @author lds
 */
@Service("userService")
public class UserServiceImpl extends BaseServiceImpl<UserMapper,FlyUser> implements UserService {

    @Override
    public FlyUser findByUsername(String username) {
        if(StringUtils.isBlank(username)){
            return null;
        }
        return mapper.findByUsername(username);
    }
}
